package com.sharemarking.wa.platform.dto.orderManagement;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sharemarking.wa.common.eum.OrderOperateTypeEum;

import java.util.List;

/**
 * @author dxy
 */
public class OrderListDto {

    private String code;
    private String orgName;
    private Integer state;
    List<WasteListDto> wasteList;
    private List<OrderOperateTypeEum> operate;
    @JsonIgnore
    private Integer sendOrgId;
    @JsonIgnore
    private Integer id;
    @JsonIgnore
    private Integer payer;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getState() {
        if (state > 6) {
            return state - 4;
        }
        return state - 3;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<WasteListDto> getWasteList() {
        return wasteList;
    }

    public void setWasteList(List<WasteListDto> wasteList) {
        this.wasteList = wasteList;
    }

    public List<OrderOperateTypeEum> getOperate() {
        return operate;
    }

    public void setOperate(List<OrderOperateTypeEum> operate) {
        this.operate = operate;
    }

    public Integer getSendOrgId() {
        return sendOrgId;
    }

    public void setSendOrgId(Integer sendOrgId) {
        this.sendOrgId = sendOrgId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPayer() {
        return payer;
    }

    public void setPayer(Integer payer) {
        this.payer = payer;
    }
}
